/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package src.com.negocio.midiateca;

import java.sql.Date;
import java.sql.SQLException;
import java.util.ArrayList;
import src.com.dados.midiateca.EmprestimoMaterialDAO;

/**
 *
 * @author Adriano
 */
public class EmprestimoMaterial {
    private int id;
    private int codMaterial;
    private int alunoMatricula;
    private Date dataInicio;
    private Date dataFim;
    private boolean devolvido;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCodMaterial() {
        return codMaterial;
    }

    public void setCodMaterial(int codMaterial) {
        this.codMaterial = codMaterial;
    }

    public int getAlunoMatricula() {
        return alunoMatricula;
    }

    public void setAlunoMatricula(int alunoMatricula) {
        this.alunoMatricula = alunoMatricula;
    }

    public Date getDataInicio() {
        return dataInicio;
    }

    public void setDataInicio(Date dataInicio) {
        this.dataInicio = dataInicio;
    }

    public Date getDataFim() {
        return dataFim;
    }

    public void setDataFim(Date dataFim) {
        this.dataFim = dataFim;
    }

    public boolean isDevolvido() {
        return devolvido;
    }

    public void setDevolvido(boolean devolvido) {
        this.devolvido = devolvido;
    }
    
    public ArrayList<String> consultaMaterial() throws SQLException {
        EmprestimoMaterialDAO i = new EmprestimoMaterialDAO();
        return i.consultaMaterial();
    }
}
